package com.example.demo.vo;

import com.diboot.core.binding.annotation.*;
import com.example.demo.entity.FinanceAccountsReceivable;
import com.example.demo.entity.Orders;
import com.example.demo.entity.FinanceReceipt;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.List;
import com.example.demo.entity.Customer;

/**
 * 应收账款 DetailVO定义
 * @author MyName
 * @version 1.0
 * @date 2024-03-04
 * Copyright © MyCompany
 */
@Getter
@Setter
@Accessors(chain = true)
public class FinanceAccountsReceivableDetailVO extends FinanceAccountsReceivable {

    private static final long serialVersionUID = -5813652419979166653L;

    /**
     * 关联字典：FINANCE
     */
    @BindDict(type = DICT_FINANCE, field = "status")
    private String statusLabel;

    /**
     * 关联字段 客户.名称：Customer.name
     */
    @BindField(entity = Customer.class, field = "name", condition = "this.customer_id=id")
    private String customerName;
}
